<h1>
    <?php if ($this->mode == INSERT_MODE): ?>
        Add New Service
    <?php else: ?>
        Edit Service
    <?php endif; ?>
</h1>
<?php $service = $this->service ?>
<?php $action = $this->mode == INSERT_MODE ? 'new-service' : 'edit-service' ?>
<?php $action_url = $this->url(array('action' => $action)) ?>
<form id='frm_newservice' method='POST' action='<?php echo $action_url ?>' autocomplete="off">
    <div class='wrap-content'>
        <label>
            Name
        </label>   
        <div class='content'>                 
            <div class='wrap-input'>
                <input type='text' name='name' id='name' value='<?php echo $this->mode == EDIT_MODE ? $service->name : "" ?>'/>
                <?php echo $this->partial("/_partial/field_error.phtml", array('errors' => $this->errors, 'field' => 'username')) ?>
            </div>
            <div class='wrap-input'>
                <input type='submit' class='submit-button' />
                <a href='<?php echo $this->baseUrl() ?>/admin/index/services'>
                    <input type='button' class='submit-button' value='Cancel'/>
                </a>
            </div>
        </div>
    </div>                              
</form>  
<script src='http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js'></script>
<script src='<?php echo $this->baseUrl() ?>/public/js/admin/newuser.js'></script>